package com.ruoyi.custom.mapper;

import com.ruoyi.custom.domain.vo.res.CarConfigResVo;
import com.ruoyi.custom.domain.vo.res.CarDetailResVo;
import com.ruoyi.custom.domain.vo.res.CarQuestionResVo;
import com.ruoyi.common.core.domain.car.CarList;
import com.ruoyi.common.core.domain.car.CarPageListReq;
import com.ruoyi.common.core.pub.PubSelect;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 参数配置 数据层
 * 
 * @author ruoyi
 */
@Mapper
public interface CarMapper
{
    List<PubSelect> cateSelectList(String cateGroupCode);

    List<CarList> carListByCateId(Long cateId);

    Integer carTotalByCateId(Long cateId);

    List<CarList> carPageList(CarPageListReq req);

    CarDetailResVo carDetailById(Long carId);

    List<String> carFileListById(Long carId);

    List<CarQuestionResVo> carQuestionList();

    List<CarConfigResVo> findAllConfigList();

    List<String> getCarConfigList(@Param("carId") Long carId, @Param("configId") Long configId);
}
